package com.example.seh.square;

import com.example.seh.UserDTO;

import java.time.temporal.Temporal;

public class Post {
    //帖子Id
    private Integer postId;
    //帖子标题
    private String title;
    //内容
    private String content;
    //图片路径
    private String picPath;
    //作者id
    private Integer authorId;
    //创建时间
    private String createTime;
    //回复数量
    private int replyCount;
    //用户信息
    private UserDTO userDTO;

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public String  getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String  createTime) {
        this.createTime = createTime;
    }

    public UserDTO getUserDTO() {
        return userDTO;
    }

    public void setUserDTO(UserDTO userDTO) {
        this.userDTO = userDTO;
    }

    public int getReply() {
        return replyCount;
    }

    public void setReply(int replyCount) {
        this.replyCount = replyCount;
    }

    @Override
    public String toString() {
        return "Post{" +
                "postId=" + postId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", picPath='" + picPath + '\'' +
                ", authorId=" + authorId +
                ", createTime='" + createTime + '\'' +
                ", replyCount=" + replyCount +
                ", userDTO=" + userDTO +
                '}';
    }
}
